<template>
  <el-form :model="data" status-icon label-width="100px" size="mini" style="margin:10px 200px">
    <el-form-item label="企业名称">
      <el-input type="text" v-model="data.name" disabled style="width:300px"></el-input>
    </el-form-item>
    <el-form-item label="公司地址">
      <el-input type="text" v-model="data.companyAddress" disabled style="width:300px"></el-input>
    </el-form-item>
    <el-form-item label="公司电话">
      <el-input type="text" v-model="data.companyPhone" disabled style="width:300px"></el-input>
    </el-form-item>
    <el-form-item label="邮箱">
      <el-input type="text" v-model="data.mailbox" disabled style="width:300px"></el-input>
    </el-form-item>
    <el-form-item label="备注">
      <el-input type="text" v-model="data.remarks" disabled style="width:300px"></el-input>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  data() {
    return {
      data: {}
    };
  },
  mounted() {
    this.getCompany();
  },
  methods: {
    async getCompany() {
      let result = await this.$api.company.getCompany();
      if (result) {
        this.data = result[0];
      }
    }
  }
};
</script>

<style>
</style>